package org.indp.mongowl.ui;

import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.VaadinServlet;
import org.indp.mongowl.services.ConnectionManager;

import javax.servlet.annotation.WebServlet;

/**
 *
 */
@WebServlet(urlPatterns = "/*", asyncSupported = true)
@VaadinServletConfiguration(productionMode = true, ui = MongowlUI.class)
public class MongowlServlet extends VaadinServlet {

    @Override
    public void destroy() {
        ConnectionManager.destroy();
        super.destroy();
    }
}
